package work.linruchang.util;

import cn.hutool.http.HttpUtil;

/**
 * @author LinRuChang
 * @version 1.0
 * @date 2022/10/06
 * @since 1.8
 **/
public class EnhanceHttpUtil extends HttpUtil {

    /**
     * 检测是否http或者https
     *
     * @param url URL
     * @return 是否http
     * @since 5.3.8
     */
    public static boolean isHttpOrHttps(String url) {
        return isHttp(url) || isHttps(url);
    }

}
